package com.kcloud.commons.entity.control;

import com.kcloud.commons.entity.core.StandardAttribute;
import lombok.Data;

import java.util.List;

/**
 * 业务功能
 */
@Data
public class Function implements StandardAttribute {
    private String funcCode; //功能编码
    private String funcName; // 功能名称
    private String funcUrl; // 功能地址
    private String funcDescription; //功能描述
    private int funcType; //功能类型
    private int mutexType; //三员类型
    private List<Operation> operations; //功能操作


    @Override
    public void setTitle(String title) {
        this.funcName = title;
    }

    @Override
    public void setKey(String key) {
        this.funcCode = key;
    }

    @Override
    public String getTitle() {
        return getFuncName();
    }

    @Override
    public String getKey() {
        return getFuncCode();
    }
}
